import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import Config from './config'

NProgress.configure(Config.progress)

// 开启进度条
export const start = () => {
  NProgress.start()
}

// 关闭进度条
export const close = () => {
  NProgress.done()
}
